package com.indeep.indeepmasterstation.feign;

import com.indeep.common.result.JsonResult;
import com.indeep.indeepmasterstation.feign.rollbak.CommunityFeignClientBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "indeep-gift",fallback = CommunityFeignClientBack.class )
public interface CommunityFeignClient {
    String preIndex = "/community/";
    @PostMapping(preIndex+"follow/default")
    JsonResult<Boolean> defaultFollowCommunity(@RequestParam("userId") Long userId);

}
